package com.aspose.cells;

import java.util.Iterator;

class zji extends CollectionBase {
   void a(int var1, Object var2) {
      if (this.a.size() > 0) {
         Iterator var3 = this.a.iterator();

         while(var3.hasNext()) {
            zjh var4 = (zjh)var3.next();
            if (var4.a == var1) {
               var4.b = var2;
               return;
            }
         }
      }

      zjh var5 = new zjh();
      var5.a = var1;
      var5.b = var2;
      com.aspose.cells.b.a.a.ze.a(this.a, (Object)var5);
   }

   Object a(int var1) {
      if (this.a.size() > 0) {
         Iterator var2 = this.a.iterator();

         while(var2.hasNext()) {
            zjh var3 = (zjh)var2.next();
            if (var3.a == var1) {
               return var3.b;
            }
         }
      }

      return null;
   }

   zjh b(int var1) {
      if (this.a.size() > 0) {
         Iterator var2 = this.a.iterator();

         while(var2.hasNext()) {
            zjh var3 = (zjh)var2.next();
            if (var3.a == var1) {
               return var3;
            }
         }
      }

      return null;
   }

   void a(zji var1) {
      Iterator var2 = var1.iterator();

      while(var2.hasNext()) {
         zjh var3 = (zjh)var2.next();
         this.a(var3.a, var3.b);
      }

   }

   boolean b(zji var1) {
      if (this.getCount() != var1.getCount()) {
         return false;
      } else {
         Iterator var2 = this.a.iterator();

         zjh var3;
         zjh var4;
         do {
            if (!var2.hasNext()) {
               return true;
            }

            var3 = (zjh)var2.next();
            var4 = var1.b(var3.a);
         } while(var4 != null && var3.b == var4.b);

         return false;
      }
   }
}
